import React from "react";
import {Routes, Route, Link} from "react-router-dom";
import Home from "../pages/home";
import Personal from "../pages/personal";

const RouterList = () => {
  return (
    <div>
      <ul>
        <li>
          <Link to="/">首页</Link>
        </li>
        <li>
          <Link to="/personal">个人中心页</Link>
        </li>
      </ul>
      <Routes>
        <Route exact path="/" element={<Home />} />
        <Route path="/personal" element={<Personal />} />
      </Routes>
    </div>
  )
}
export default RouterList
